package com.bdqn.service;

import com.bdqn.pojo.SysRole;
import com.bdqn.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    /**
     * 获得用户列表
     *
     * @param sysUser
     * @return
     */
    public List<SysUser> getList(SysUser sysUser);

    /**
     * 新增用户
     * @param sysUser
     * @return
     */
    public boolean add(SysUser sysUser);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public int del(@Param("id") int id);


    /**
     * 根据id修改用户密码
     * @param id
     * @param password
     * @return
     */
    public int upd(@Param("id") int id, @Param("password")String password);

    public int updateId(SysRole sysRole);
    public int deleteUser(@Param("userId") Integer userId);

    public int delete(@Param("id") Integer id);


}
